Skip to content

Mount editor at /app (Multi-Zones) + finish OpenScript rebrand#4

Merged
preston176 merged 2 commits into
mainfrom
chore/openscript-rebrand
Jun 9, 2026
Merged

Mount editor at /app (Multi-Zones) + finish OpenScript rebrand#4
preston176 merged 2 commits into
mainfrom
chore/openscript-rebrand

Conversation

@preston176

Copy link
Copy Markdown
Owner

What

Pre-launch cleanup + makes the beta reachable as one site.

1. Mount the editor at /app (Next.js Multi-Zones)

The marketing site (apps/website) is the default zone serving /; the editor (apps/web) now ships with basePath: "/app" and is stitched in via rewrites — so the whole product is one origin: landing at /, editor at /app.

  • apps/web: basePath: "/app" (also namespaces /_next under /app)
  • apps/website: rewrites /app and /app/:path*APP_ZONE_URL
  • shared BASE_PATH constant; auth baseURL (client + server) and the feedback fetch now resolve under /app (next/link & next/navigation are already basePath-aware)
  • hero CTA: "Join Waitlist" → "Launch the beta" (/app); waitlist kept as a secondary link; /success demo link now points at /app
  • removed the superseded mock /editor demo (page + 6 components, ~900 lines)

2. Finish the OpenCut → OpenScript rebrand

Renames functional identifiers that still carried the upstream name:

  • ESLint plugin eslint-plugin-opencut-openscript and rule opencut/prefer-object-paramsopenscript/... (incl. all eslint-disable directives)
  • Postgres dev DB user/pass/name opencutopenscript (docker-compose, .env.example, Dockerfile, bun-ci.yml, CONTRIBUTING)
  • Cloudflare worker name/service → openscript (both wrangler.jsonc)
  • desktop crate opencut-desktopopenscript-desktop

Intentionally left unchanged: the published opencut-wasm npm package (+ opencut_wasm.* filenames) and the opencut-* localStorage keys — renaming would break the dependency / orphan existing users' stored data.

Verification

  • apps/web builds green with basePath: "/app"; tsc --noEmit clean
  • apps/website builds green (routes: /, /_not-found, /success)
  • ESLint rule rename verified resolving (no "rule not found" / unused-directive errors)

⚠️ Deploy steps required before/with merge (Vercel)

Once merged and deployed, the editor stops serving at root and only answers under /app. These must land together with the merge or the live editor breaks:

  1. Deploy apps/website as the front-door project (what the domain points at).
  2. Set APP_ZONE_URL on the marketing project = the editor deployment's URL (the /app/* rewrite target).
  3. Turn off Deployment Protection on the editor project, and point openscript.app DNS at the marketing project.

Known follow-ups (non-blocking)

  • Auth/feedback are optional backend features (no DB/Redis in the beta), so their basePath wiring is correct but unexercised until that backend is deployed.
  • apps/desktop remains a non-functional GPUI scaffold (no "download").

Renames functional identifiers that still carried the upstream name:
- ESLint plugin eslint-plugin-opencut -> -openscript and rule
  opencut/prefer-object-params -> openscript/prefer-object-params
  (incl. all eslint-disable directives that reference it)
- Postgres dev DB user/pass/name opencut -> openscript across
  docker-compose.yml, .env.example, Dockerfile, bun-ci.yml, CONTRIBUTING.md
- Cloudflare worker name/service opencut -> openscript (both wrangler.jsonc)
- Desktop crate opencut-desktop -> openscript-desktop
- website accent-color comment

Intentionally left unchanged: the published `opencut-wasm` npm package
(+ opencut_wasm.* filenames) and the opencut-* localStorage keys, whose
rename would break the dependency / orphan existing users' stored data.
Marketing site (apps/website) is the default zone serving "/"; the editor
(apps/web) now ships under basePath "/app" and is stitched in via rewrites,
so the whole product is one origin: landing at "/", editor at "/app".

- apps/web: basePath "/app" (also namespaces /_next under /app)
- apps/website: rewrites /app and /app/:path* -> APP_ZONE_URL
- BASE_PATH constant; auth baseURL (client+server) and the feedback fetch
  now resolve under /app (next/link & next/navigation are already basePath-aware)
- hero CTA: 'Join Waitlist' -> 'Launch the beta' (/app); waitlist kept as a
  secondary link; /success demo link now points at /app
- remove the superseded mock /editor demo (page + components)

Both apps build green; editor type-checks clean. Auth/feedback are optional
backend features (no DB/Redis in the beta) so their basePath wiring is correct
but unexercised until that backend is deployed.
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openscript Ready Ready Preview, Comment Jun 9, 2026 7:15am
openscript-app Ready Ready Preview, Comment Jun 9, 2026 7:15am

@gitguardian

gitguardian Bot commented Jun 9, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
33826069 Triggered Generic Password ef86e26 docker-compose.yml View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@preston176 preston176 merged commit 6d897dc into main Jun 9, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant